<template>
  <!-- header -->
  <div>
  </div>
  <!-- footer -->
</template>
<script>
export default {
    // http://localhost:3000/weixin/callback/10
    //http://localhost:3000/weixin/callback?token=11&name=22&openid=22
    data() {
        return {
 
        }
    },
    mounted() {
        // http://localhost:3000/weixin/callback/10
        //http://localhost:3000/weixin/callback?token=11&name=22&openid=22
        //this.$route.query.参数名称
        let token = this.$route.query.token
        let name = this.$route.query.name
        let openid = this.$route.query.openid
        // 调用父vue方法
        window.parent['loginCallback'](name, token, openid)
    }
}
</script>